package ma.jee.portailReservation.persistence.reservation.DAO;

import ma.jee.portailReservation.framework.dao.hibernate.AbstractHibernateDAO;
import ma.jee.portailReservation.persistence.reservation.IReglementDAO;
import ma.jee.portailReservation.persistence.reservation.Reglement;
import org.springframework.stereotype.Repository;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 22/12/11
 * Time: 02:10
 * To change this template use File | Settings | File Templates.
 */
@Repository("hibernateReglementDAO")
public class HibernateReglementDAO extends AbstractHibernateDAO<Long, Reglement> implements IReglementDAO {

   @Override
    public Reglement findByReglementId(long id) {
        return super.findEntityByQuery("FROM Reglement p WHERE p.idReglement ='"+id+"'");
    }
}
